window.addEventListener('load',function(){
    let reduce = document.querySelector('.num .reduce')
    let add = document.querySelector('.num .add')
    let num1 = document.querySelector('.num .num1')


    add.addEventListener('click',function(){
        num1.value++
    })
    reduce.addEventListener('click',function(){
       
        if(num1.value<=1){
            return;
        } num1.value--
    })
    
    
})